import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-plus'
import 'element-plus/theme-chalk/index.css'
import * as icons from '@element-plus/icons-vue'

import jm_util from './assets/utils/base'
import jm_filters from './assets/utils/filters'

const app = createApp(App)

Object.keys(icons).forEach((key) => {
  app.component(key, icons[key])
})

app.provide('$utils', jm_util)
app.provide('$filters', jm_filters)

app.use(store).use(router).use(ElementUI)

app.mount('#app')
